part of '../fragment.dart';

class _PaymentMethodRemovalButton extends StatelessWidget {
  const _PaymentMethodRemovalButton({
    required this.size,
    required this.onPressed,
    Key? key,
  }) : super(key: key);

  final double size;
  final VoidCallback onPressed;

  @override
  Widget build(BuildContext context) {
    return AppButton(
      onPressed: onPressed,
      child: SizedBox(
        height: size,
        width: size,
        child: Center(
          child: Icon(
            CupertinoIcons.xmark,
            size: size * 0.7,
            color: PaymentMethodFragmentTheme.of(context).editingButtonIconColor,
          ),
        ),
      ),
    );
  }
}
